﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta name="format-detection" content="telephone=no">
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="format-detection" content="email=no" />
    <title>分享王者争霸2018：拒绝穷忙，环游世界</title>
<meta id="metaDescription" name="description" content="推荐好房可收佣，穷忙救星分享家">
    <script src="__PUBLIC__/js/public.js"></script>
    <link rel="stylesheet" href="__PUBLIC__/css/common.css">
    <link rel="stylesheet" href="__PUBLIC__/css/pageIndex.css?1=3">
    <script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
</head>
<body ontouchstart>
 <div style="position:absolute; bottom:0px; width:0px; height:0px; overflow:hidden;"><img src="__PUBLIC__/images/thumbnail.jpg" alt=""></div>
    <div id="con">
        <div class="partTop">
            <span id="shareBtn"></span>
            <div class="selfInfo">
                <img class="selfImg" src="{$userinfo['headimgurl']}" alt="">
                <p class="selfName">{$userinfo['nickname']}</p>
            </div>
            <div class="infoDetail">
                <div class="dBox1">
                    <p class="infoBox Boxes1">
                        <span class="info-txt"><i class="icon_img"><img src="__PUBLIC__/images/icon_money.png" alt=""></i>认购总金额: {$nowrank['money']}元</span>
                    </p>
                    <div class="Boxes2">
                        <p class="infoBox infoBox1">
                            <span class="info-txt"><i class="icon_img"><img src="__PUBLIC__/images/icon_money.png" alt=""></i>
							<?php if($nowrank['money'] == 0){ ?>
							<span style="font-size:12px;">无排行，求分享</span>
							<?php 
							}
							else{ ?>
							排行榜: {$nowrank['money_num']}
							<?php } ?>
							</span>
                        </p>
                        <p class="infoBox infoBox2">
                            <span class="info-txt"><i class="icon_img"><img src="__PUBLIC__/images/icon_money.png" alt=""></i>称号: {$nowrank['nick']}</span>
                        </p>
                    </div>
                </div>
                <div class="dBox2">
                    <p class="infoBox2">发展经纪人：<if condition="$nowrank['jjrcount'] gt 0">{$nowrank['jjrcount']}<else/>0</if>位</p>
                    <p class="infoBox2">活动积分:{$nowrank['score']}</p>
                    <p class="infoBox2">推荐到访：{$nowrank['dfcount']}位</p>
                    <p class="infoBox2">打败了{$nowrank['score_bfb']}%的人</p>
                </div>
            </div>
            <div class="awardsBox">
                <p class="arrived" id="arrived" d-length="<?php echo ($nowrank['money']/10000000)*100;?>%"></p>
            </div>
            <div class="rankingList">
                <volist name="ranking" id="v" key="k">
					<?php
						if($k > 10) break;
					?>
                    <div class="listDetail">
                        <if condition="$k lt 4">
                            <span class="rankNum r_best"><img src="__PUBLIC__/images/{$k}.png" alt=""></span>
                        <else/>
                            <span class="rankNum ">{$k}</span> 
                        </if>
                        <img class="selfImg" src="{$v['headimgurl']}" alt="">
                        <span class="selfName">

                            <?php
                                $uu = M('user')->where(['mobile'=>$v['mobile']])->find();
                                if($uu['nickname']){
                                    echo mb_substr($uu['nickname'], 0,4,'utf-8');
                                }else{
                                    echo mb_substr($v['name'], 0,4,'utf-8');
                                }
                            ?>
                            
                        </span>
                        <div class="lineImg"><p class="arrived" id="arrived{$k}" d-length="<?php echo ($v['money']/30000000)*100;?>%"></p></div>
                        <p class="r_money">{$v['money']}元</p>    
                    </div>
                </volist>
                
            </div>
            <p class="remarkTxt">*以上数据因涉及成交统计，具有一定延迟性，因此仅作为阶段性排名公示。最终得奖以分享家后台数据统计为准。</p>
            <p class="moreBtn status_close" id="moreBtn"></p>
        </div>
        <div class="partDown conHide">
            <div class="ruleTxts">
                    <img src="__PUBLIC__/images/rules.jpg" alt="">
            </div>
            <div class="btns">
                <a href="{:U('index/index')}"><p class="btn btn1" id="start">我的排名</p></a>
                <a href="https://union.vanke.com/wechat/#/homeForGz"><p class="btn btn2">去赚积分/佣金</p></a>
				<a href="https://union.vanke.com/wechat/#/aboutRule"><p class="btn btn1" >分享细则</p></a>
				<a href="https://mp.weixin.qq.com/s/bydrcQ0nSqTqcP6Rk_hksw"><p class="btn btn2" >使用教程</p></a>
            </div>
        </div>
    </div>
    <script src="__PUBLIC__/js/jquery1.11.1.min.js"></script>
    <script src="__PUBLIC__/js/fastclick.min.js"></script>
    <script src="__PUBLIC__/js/layer.js"></script>
    <script type="text/javascript">

        /*var curUrl = location.href.split('#')[0];

        var wxConfigData = {
            debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来，若要查看传入的参数，可以在pc端打开，参数信息会通过log打出，仅在pc端时才会打印。
            appId: "{$jsTicket['appId']}", // 必填，公众号的唯一标识
            timestamp: "{$jsTicket['timestamp']}", // 必填，生成签名的时间戳
            nonceStr: "{$jsTicket['nonceStr']}", // 必填，生成签名的随机串
            signature: "{$jsTicket['signature']}",// 必填，签名，见附录1
            jsApiList: [
                'checkJsApi',
                'onMenuShareTimeline',
                'onMenuShareAppMessage',
                'onMenuShareQQ',
                'onMenuShareWeibo'
            ] 
        };

        var wxData = {
                    title :"王者争霸，等你来战",
                    desc : "你的好友何冬参与争霸，等待你来挑战",
                    link : curUrl,
                    //imgUrl : '{{ URL::asset('recommend/images/bn.jpg') }}',
                    type: '', 
                    dataUrl: '', 
                    success: function () {
                        //分享成功
                    }
                };
        wx.config(wxConfigData);

        //alert('999');
        //alert(curUrl);

        // 分享绑定
        function addWeixinShareListening () {
            wx.onMenuShareTimeline(wxData);
            wx.onMenuShareAppMessage(wxData);
            wx.onMenuShareQQ(wxData);
            wx.onMenuShareWeibo(wxData);
        }

        //alert('666');

        wx.ready(function(){
            //wx.hideOptionMenu();
            addWeixinShareListening();
        });

        wx.error(function(res){
            //alert(res);
        });

        $("#shareBtn").click(function() {
            layer.open({
                        skin :'msg',
                        content : '请点击右上角菜单分享给好友' ,
                        time :3
                    });
        });*/

        $("#shareBtn").click(function() {
            layer.open({
                        skin :'msg',
                        content : '请点击右上角菜单分享给好友' ,
                        time :3
                    });
        });



        $(function(){
            FastClick.attach( document.body );  
            var Page = function(){};
            $.extend(Page.prototype , {
                init : function(){
                    this.bindEvents();
                },
                bindEvents : function(){
                    var _self = this;
                    // 里程血条状况...
                    $("#arrived").get(0).style.width = $("#arrived").attr("d-length");
                    
                    // 排行榜血条转状况...
                    var listEles = $(".listDetail");
                    for(var i=1;i<=listEles.length;i++){
                        $("#arrived" +i).get(0).style.width = $("#arrived" +i).attr("d-length");
                    }
                    $("#moreBtn").on("click",function(){
                        $(".partDown").toggleClass("conHide");
                        $(window).scrollTop(1000);
                    });
                },
                layerInfo : function(str){
                    layer.open({
                        skin :'msg',
                        content : str ,
                        time :3
                    });
                }
            });
            var page = new Page();
            page.init();
        })


    </script>
	<div style="display:none;">
<script src="http://s15.cnzz.com/stat.php?id=2389919&web_id=2389919&show=pic1" language="JavaScript"></script></div>
</body>
</html>